package com.iraeta.controller;

import com.iraeta.common.AuthAccess;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController(value = "TestController")
@RequestMapping("test")
public class TestController extends BaseController{
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    @RequestMapping("appok")
    @AuthAccess
    public String appOk(){
        logger.info("appok");
        Map<String, String> res = new HashMap<>();
        res.put("giftApp", "ok");
        return this.success(res);
    }
}
